{template 'web/common/common'}
{template 'web/user/navbar'}
<link rel="stylesheet" type="text/css" href="../addons/kundian_farm/resource/css/style.css" />
<div class="panel panel-success">
    <div class="panel-heading">
        <h3 class="panel-title">
            用户管理>添加用户
        </h3>
    </div>
    <div class="panel-body">
        <form id="sign-form" class="form-horizontal" role="form" method="post" enctype="multipart/form-data" action="{url 'site/entry/user',array('m'=>'kundian_farm','op'=>'saveModel','version_id'=>$_GPC['version_id'])}" name="submit" style="padding: 20px 0;">
            <div class="form-group">
                <label for="title" class="col-sm-2 control-label">微信昵称</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="nickname" id="title" value="{$list['nickname']}">
                    <input type="hidden" name="id" value="{$list['id']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">头像(375*530)</label>
                <div class="col-sm-8">
                    {php echo tpl_form_field_image('avatarurl',$list['avatarurl']);}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">联系电话</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="phone" value="{$list['phone']}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">地址</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="address" value="{$list['address']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">openid</label>
                <div class="col-sm-8">
                    <input type="text" readonly  class="form-control" value="{$list['openid']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">积分</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  readonly value="{$list['score']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">连续签到天数</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  readonly value="{$list['continue_day']}">
                </div>
            </div>
            <div class="form-group">

                <div class="col-sm-offset-2 col-sm-10">
                    <input type="submit" name="submit" class="btn btn-default">
                    <a class="btn btn-default" href="{url 'site/entry/user',array('m'=>'kundian_farm')}">返回</a>
                </div>
            </div>



        </form>
    </div>
</div>
